﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RepeaterForm.aspx.cs" Inherits="DataGrid_Binding_Northwind.RepeaterForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="formRepeater" runat="server">
    <asp:Repeater runat="server" ID="repeaterEmployees">  
        <HeaderTemplate>
            <h1>This is created with the cool REPEATER!</h1>
        </HeaderTemplate>  
        <ItemTemplate>        
             <h2>
                <%# Eval("FirstName") %>
                <%# Eval("LastName") %>
             </h2>
             <p>
                <%# Eval("Notes") %>
             </p>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <div style='background-color:#EEE'>
                <h2 >
                    <%# Eval("FirstName") %>
                    <%# Eval("LastName") %>
                 </h2>
                 <p>
                    <%# Eval("Notes") %>
                 </p>
             </div>
        </AlternatingItemTemplate>
        <SeparatorTemplate>
            <hr />
        </SeparatorTemplate>
        <FooterTemplate>
            <div>Created by Subev.</div>
        </FooterTemplate>
    </asp:Repeater>
    </form>
</body>
</html>
